import request from '@/utils/request'

// 查询凭证2列表
export function listVoucher2(query) {
  return request({
    url: '/system/voucher2/list',
    method: 'get',
    params: query
  })
}

// 查询凭证2详细
export function getVoucher2(fVoucherid2) {
  return request({
    url: '/system/voucher2/' + fVoucherid2,
    method: 'get'
  })
}

// 新增凭证2
export function addVoucher2(data) {
  return request({
    url: '/system/voucher2',
    method: 'post',
    data: data
  })
}

// 修改凭证2
export function updateVoucher2(data) {
  return request({
    url: '/system/voucher2',
    method: 'put',
    data: data
  })
}

// 删除凭证2
export function delVoucher2(fVoucherid2) {
  return request({
    url: '/system/voucher2/' + fVoucherid2,
    method: 'delete'
  })
}
